package com.globalresources.po;

import java.util.HashSet;
import java.util.Set;

/**
 * User entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class User implements java.io.Serializable {

	// Fields

	private Integer id;
	private DetailUser detailUser;
	private String username;
	private String password;
	private String pin;
	private Byte enable;
	private Set relations = new HashSet(0);

	// Constructors

	/** default constructor */
	public User() {
	}

	/** minimal constructor */
	public User(DetailUser detailUser, String username, String password, String pin, Byte enable) {
		this.detailUser = detailUser;
		this.username = username;
		this.password = password;
		this.pin = pin;
		this.enable = enable;
	}

	/** full constructor */
	public User(DetailUser detailUser, String username, String password, String pin, Byte enable, Set relations) {
		this.detailUser = detailUser;
		this.username = username;
		this.password = password;
		this.pin = pin;
		this.enable = enable;
		this.relations = relations;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public DetailUser getDetailUser() {
		return this.detailUser;
	}

	public void setDetailUser(DetailUser detailUser) {
		this.detailUser = detailUser;
	}

	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getPin() {
		return this.pin;
	}

	public void setPin(String pin) {
		this.pin = pin;
	}

	public Byte getEnable() {
		return this.enable;
	}

	public void setEnable(Byte enable) {
		this.enable = enable;
	}

	public Set getRelations() {
		return this.relations;
	}

	public void setRelations(Set relations) {
		this.relations = relations;
	}

}